package slxy.jiangtao.dts.core.common.bean;

import java.util.List;
import java.util.Map;

/**
 * 前台查询对象
 * Created by JiangTao on 2016/11/25.
 */
public class FormQuery {
    /**
     * 实体类名
     */
    private String entity;

    /**
     * 导入导出文件名
     */
    private String fileName;

    /**
     * 导入导出文件表头
     */
    private String title;

    /**
     * 当前页数(导出时不使用)
     */
    private int currPage;

    /**
     * 每页数据条数(导出时不使用)
     */
    private int pageSize;

    /**
     * 表单查询条件，包含排序
     */
    private List<FormCriteria> criterias;

    /**
     * 表单字段排序
     */
    private Map<String, Object> sorts;

    /**构造方法一*/
    public FormQuery() {
        this.currPage = 1;
        this.pageSize =Constants.DEFAULT_PAGE_SIZE;
    }

    /**构造方法二*/
    public FormQuery(String entity) {
        this.entity = entity;
        this.currPage = 1;
        this.pageSize =Constants.DEFAULT_PAGE_SIZE;
    }

    /**构造方法三*/
    public FormQuery(String entity, int pageSize, int currPage) {
        this.entity = entity;
        this.currPage = currPage;
        this.pageSize = pageSize;
    }

    public int getCurrPage() {
        return currPage;
    }

    public void setCurrPage(int currPage) {
        this.currPage = currPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public List<FormCriteria> getCriterias() {
        return criterias;
    }

    public void setCriterias(List<FormCriteria> criterias) {
        this.criterias = criterias;
    }

    public Map<String, Object> getSorts() {
        return sorts;
    }

    public void setSorts(Map<String, Object> sorts) {
        this.sorts = sorts;
    }

    public String getEntity() {
        return entity;
    }

    public void setEntity(String entity) {
        this.entity = entity;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
